package buildcode.language.java.type;

import java.util.stream.Collectors;

import buildcode.database.DataBaseTable;
import buildcode.language.java.field.JavaDatabaseQueryField;

public class JavaXmlMapper extends JavaType<JavaDatabaseQueryField, DataBaseTable> {

    public JavaXmlMapper(String name, String packagePath) {
        super(name, packagePath);
    }

    public String getColumnFields() {
        return getFields().stream().map(v -> v.getMetaData().getColumnName()).collect(Collectors.joining(","));
    }

}
